/**
 * createby : JinxLbj
 * date : 2018/9/27
 * desc :
 **/

package jinx.lbj.springcloud_feign.feign;

import jinx.lbj.springcloud_feign.fallback.SchedualServiceHiFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "springcloud-model", fallback = SchedualServiceHiFallBack.class)
public interface SchedualServiceHi {

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHiFromClientOne(@RequestParam(value = "name") String name);

}
